let username:string = "xiaowang"
let age:number = 123
let bool:boolean = true
let msg:string | undefined | null
msg = null

let msg2:undefined

//数组只能存放同一种数据类型
let array:number[] = [1,2,3]
let array2:string[] = ["xiaowang"]
let array3:Array<string> = ["xiaowang"]


let obj:{id:number,name:string} = {
    id:1,
    name:"xiaowang"
}
let array4:object = []
const fun:object = ()=>{

}

console.log(obj.id);

let temp:[number,string,boolean] = [1,"xiaowang",true]

// let username2 = "xiaowang"
// let obj2 = {id:1}

const odiv:any = document.getElementById("#app")
